/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.systemcar.controller;

import br.com.systemcar.dao.CombustivelDao;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import br.com.systemcar.model.Combustivel;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;


/**
 *
 * @author danilo
 */


@ManagedBean
public class CombustivelCtrl implements Serializable {
    
    private List<Combustivel> listCombustivel;
        
    @Inject
    private CombustivelDao combustivelDao;
 
    public CombustivelCtrl() {
        listCombustivel=new ArrayList<Combustivel>();
        
        
    }
    
    public List<Combustivel> listar(){
        return combustivelDao.listar();
    }

    public List<Combustivel> getListCombustivel() {
        return listCombustivel;
    }

    public void setListCombustivel(List<Combustivel> listCombustivel) {
        this.listCombustivel = listCombustivel;}
    
    
}
